<alert class="alert-msg" ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}
</alert>

<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">场景内容查询</h3>
    </div>
    <div class="panel-body">
        <form class="form-inline">
            <div class="form-group" ng-if="!contextIsModal">
                <label for="sceneName">场景名称：</label>
                <input type="text" class="form-control" id="sceneName" placeholder="馆名称"
                       ng-model="currentScene.sceneName">
            </div>
            <div class="form-group">
                <label for="content">场景内容：</label>
                <input type="text" class="form-control" id="content" placeholder="内容" ng-model="content">
            </div>

            <div class="form-group">
                <label for="status">内容状态：</label>
                <select id="status" name="state" ng-model="status" class="form-control">
                    <option value="-2">全部</option>
                    <option value="3">已排期</option>
                    <option value="0">未排期</option>
                    <option value="-1">删除</option>
                </select>
            </div>

            <br/>

            <div class="form-group">
                <dropdown-date datemodel="gmtCreateStart" dataid="gmtCreateStart"
                               label="导入时间："></dropdown-date>
            </div>

            <div class="form-group">
                <dropdown-date datemodel="gmtCreateEnd" dataid="gmtCreateEnd"
                               label="至："></dropdown-date>
            </div>
            <br/>

            <button type="submit" class="btn btn-primary" ng-click="getBizSceneList()">查询</button>
            <button type="submit" class="btn btn-primary" ng-click="insertSceneContent()"
                    ng-show="currentScene.sceneId>0 && !contextIsModal">
                新增场景内容
            </button>
            <button type="submit" class="btn btn-primary" ng-click="insertSceneSchedule()"
                    ng-show="currentScene.sceneId>0 &&!contextIsModal">
                新增场景排期
            </button>

        </form>
    </div>
</div>

<div>获取<strong>{{totalItems}}</strong>条数据</div>

<content-table ng-if="currentScene.contentSchema"
               content-schema="currentScene.contentSchema" content="myData"
               could-top="false"
               delete-content="deleteContent(contentItem)"
               update-content="updateContent(contentItem)"
               update-select-content="updateSelectContent(contentItem)"
               update-select-content-all="updateSelectContentAll(allChecked)"></content-table>

<pagination total-items="totalItems"
            ng-model="currentPage"
            items-per-page="pageSize"
            max-size="3" class="pagination-sm"
            boundary-links="true" rotate="false"
            previous-text="上一页"
            next-text="下一页"
            last-text="最后一页"
            first-text="第一页"
            ng-change="getBizSceneList()">
</pagination>

<div ng-if="contextIsModal">
    <button type="submit" class="btn btn-primary" ng-click="ok()">确定</button>
    <button type="submit" class="btn btn-primary" ng-click="cancel()">取消</button>
</div>
